from django.urls import path
from . import views

app_name = 'order'

urlpatterns = [
    path('restaurants/', views.restaurant_list, name='restaurant_list'),
    path('restaurants/<int:restaurant_id>/', views.restaurant_detail, name='restaurant_detail'),
    path('create/<int:restaurant_id>/', views.create_order, name='create_order'),
    path('orders/', views.order_list, name='order_list'),
    path('cancel/<int:order_id>/', views.cancel_order, name='cancel_order'),
    path('pay/<int:order_id>/', views.order_pay, name='order_pay'),
    path('alipay/return/', views.alipay_return, name='alipay_return'),
    path('alipay/notify/', views.alipay_notify, name='alipay_notify'),
    path('restaurant/<int:restaurant_id>/menu/', views.menu_items, name='menu_items'),
    path('add-to-cart/', views.add_to_cart, name='add_to_cart'),
]
